package com.hu.bookstore.controller;


import com.hu.bookstore.service.bookService;
import com.hu.bookstorecommon.entity.category;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class cateGoryController {
    @Autowired
    private bookService bookService;

    @GetMapping("/cateGory")
    public List<category> AllCateGory(){

        return bookService.getAllCateGory();

    }
}
